﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="WSAD2013Project.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2" Height="308px" Width="811px" 
            AllowSorting="True" BackColor="White" BorderColor="#CC9966" 
            BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <Columns>
                <asp:BoundField DataField="HeroName" HeaderText="HeroName" 
                    SortExpression="HeroName" />
                <asp:BoundField DataField="AlterEgo" HeaderText="AlterEgo" 
                    SortExpression="AlterEgo" />
                <asp:BoundField DataField="SuperHeroAbilities" HeaderText="SuperHeroAbilities" 
                    SortExpression="SuperHeroAbilities" >
                <ItemStyle HorizontalAlign="Justify" />
                </asp:BoundField>
                <asp:BoundField DataField="AlterEgoAbilities" HeaderText="AlterEgoAbilities" 
                    SortExpression="AlterEgoAbilities" >
                <ItemStyle HorizontalAlign="Justify" />
                </asp:BoundField>
                <asp:BoundField DataField="BackgroundStory" HeaderText="BackgroundStory" 
                    SortExpression="BackgroundStory" >
                <ItemStyle HorizontalAlign="Justify" />
                </asp:BoundField>
                <asp:BoundField DataField="FirstAppearance" HeaderText="FirstAppearance" 
                    SortExpression="FirstAppearance" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                </asp:ImageField>
            </Columns>
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <SortedAscendingCellStyle BackColor="#FEFCEB" />
            <SortedAscendingHeaderStyle BackColor="#AF0101" />
            <SortedDescendingCellStyle BackColor="#F6F0C0" />
            <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HeroesConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:HeroesConnectionString.ProviderName %>" 
            SelectCommand="SELECT [HeroName], [AlterEgo], [SuperHeroAbilities], [AlterEgoAbilities], [BackgroundStory], [FirstAppearance], [Picture] FROM [MoreDetails] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HeroesConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:HeroesConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [HeroName], [AlterEgo], [SuperHeroAbilities], [AlterEgoAbilities], [BackgroundStory], [FirstAppearance], [Picture] FROM [MoreDetails] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
